package com.ssy.lingxi.order.model.vo.mobile.response;

import com.ssy.lingxi.order.model.bo.OrderRequirementDetailBO;
import org.springframework.util.StringUtils;

import java.io.Serializable;

/**
 * App - 订单详情 - 订单其他要求
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-25
 */
public class MobileOrderRequirementDetailVO implements Serializable {
    private static final long serialVersionUID = 7745683704850733016L;

    public MobileOrderRequirementDetailVO(OrderRequirementDetailBO detail) {
        if(detail == null) {
            this.pack = "";
            this.remark = "";
        } else {
            this.pack = StringUtils.hasLength(detail.getPack()) ? detail.getPack() : "";
            this.remark = StringUtils.hasLength(detail.getRemark()) ? detail.getRemark() : "";
        }
    }

    /**
     * 包装要求
     */
    private String pack;

    /**
     * 订单备注，或其他要求
     */
    private String remark;

    public String getPack() {
        return pack;
    }

    public void setPack(String pack) {
        this.pack = pack;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
